package com.blog.entity;

import java.util.Date;

/**
 * @author 蒲鑫
 * @function 功能：传输帖子的相关信息
 * @date 2023年5月25日
 */
public class Post {
	private int postId;//帖子id

	private String postTitle;//帖子标题

	private String postText;//帖子内容

	private int postUserId;//帖子所属用户id

	private int postPlateId;//帖子所属板块id

	private int postState;//帖子状态

	private Date creationTime;//创建时间

	public int getPostId() {
		return postId;
	}

	public void setPostId(int postId) {
		this.postId = postId;
	}

	public String getPostTitle() {
		return postTitle;
	}

	public void setPostTitle(String postTitle) {
		this.postTitle = postTitle;
	}

	public String getPostText() {
		return postText;
	}

	public void setPostText(String postText) {
		this.postText = postText;
	}

	public int getPostUserId() {
		return postUserId;
	}

	public void setPostUserId(int postUserId) {
		this.postUserId = postUserId;
	}

	public int getPostPlateId() {
		return postPlateId;
	}

	public void setPostPlateId(int postPlateId) {
		this.postPlateId = postPlateId;
	}

	public int getPostState() {
		return postState;
	}

	public void setPostState(int postState) {
		this.postState = postState;
	}

	public Date getCreationTime() {
		return creationTime;
	}

	public void setCreationTime(Date creationTime) {
		this.creationTime = creationTime;
	}

	public Post(int postId, String postTitle, String postText, int postUserId, int postPlateId, int postState,
			Date creationTime) {
		super();
		this.postId = postId;
		this.postTitle = postTitle;
		this.postText = postText;
		this.postUserId = postUserId;
		this.postPlateId = postPlateId;
		this.postState = postState;
		this.creationTime = creationTime;
	}

	public Post() {
		super();
	}

}
